#include<bits/stdc++.h>
using namespace std;
const int N=100010;
int a[N];
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n,m,answer;
	cin>>n;
    answer=n;
	for(int i=1;i<=n;i++){
		cin>>a[i];
	}
	for(int i=1;i<=n;i++){
		for(int l=1;l<=n-i;l++){
			if(a[l]>a[l+1]){
				m=a[l];
				a[l]=a[l+1];
				a[l+1]=m;
			}
		}
	}
    for(int i=1;i<=n;i++){
		if(a[i]!=a[i-1]){
			answer--;
		}
	}
	cout<<answer;
	return 0;
}
